const env = process.env.NODE_ENV
let dbconfig = {}
let redisConfig = {}
if (env === "dev") {
  dbconfig = {
    host: "localhost",
    port: "3306",
    user: "root",
    password: "123456",
    database: "myblog"
  }
  redisConfig = {
    host: "127.0.0.1",
    port: 6379
  }
}

if (env === "production") {
  dbconfig = {
    host: "localhost",
    prot: "3306",
    user: "root",
    password: "123456",
    database: "myblog"
  }
  redisConfig = {
    host: "127.0.0.1",
    port: 6379
  }
}

module.exports = {
  dbconfig,
  redisConfig
}